package com.triones.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 换汇记录
 */
@TableName(value = "tr_crypto_exchange")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CryptoExchangeDO {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 币种树
     */
    private String ccyPair;
    /**
     * 报价id
     */
    private String priceId;
    /**
     * 报价
     */
    private String price;
    /**
     * 卖出金额
     */
    private String sellAmount;
    /**
     * 交易ID
     */
    private String txnId;
    /**
     * 买入金额
     */
    private String buyAmount;
    /**
     * 交易状态
     */
    private String status;
    /**
     * 创建时间
     */
    private String createdAt;
    /**
     * 结算时间
     */
    private String settledAt;
}
